<?php

class RssPost
{
    private $rssPostId = null;
    private $rssInfoId = null;
    private $title = '';
    private $description = '';
    private $image = null;
    private $content = '';
    private $postLink = '';
    private $author = '';
    private $categories = array();
    private $creationDate = '';
    private $sourceLink = '';

    public function SetRssPostId( $rssPostId )
    {
        $this->rssPostId = $rssPostId;
    }

    public function GetRssPostId()
    {
        return $this->rssPostId;
    }

    public function SetRssInfoId( $rssInfoId )
    {
        $this->rssInfoId = $rssInfoId;
    }

    public function GetRssInfoId()
    {
        return $this->rssInfoId;
    }

    public function SetTitle( $title )
    {
        $this->title = $title;
    }

    public function GetTitle()
    {
        return $this->title;
    }

    public function SetDescription( $description )
    {
        $this->description = $description;
    }

    public function GetDescription()
    {
        return $this->description;
    }

    public function SetPostLink( $postLink )
    {
        $this->postLink = $postLink;
    }

    public function GetPostLink()
    {
        return $this->postLink;
    }

    public function SetAuthor( $author )
    {
        $this->author = $author;
    }

    public function GetAuthor()
    {
        return $this->author;
    }

    public function SetCategories( $categories )
    {
        $this->categories = $categories;
    }

    public function GetCategories()
    {
        return $this->categories;
    }

    public function GetTagTitles()
    {
        $tagTitles = array();
        foreach ($this->categories as $category)
        {
            $tagTitles[] = $category->GetTitle();
        }
        return $tagTitles;
    }

    public function SetCreationDate( $creationDate )
    {
        $this->creationDate = $creationDate;
    }

    public function GetCreationDate()
    {
        return $this->creationDate;
    }

    public function SetContent( $content )
    {
        $this->content = $content;
    }

    public function GetContent()
    {
        return $this->content;
    }

    public function SetImage( $image )
    {
        $this->image = $image;
    }

    public function GetImage()
    {
        return $this->image;
    }

    public function SetSourceLink( $sourceLink )
    {
        $this->sourceLink = $sourceLink;
    }

    public function GetSourceLink()
    {
        return $this->sourceLink;
    }
}

?>